import $ from '../common';
Page({
  data: {
    titleHeight: $.gData().titleHeight,
    statuHeight: $.gData().statuHeight,
  },
  // 去往关于课待
  goabout(){
    $.navigateTo(`/setting/about`)
  },
  // 退出登录
  loginout(){
    $.actionSheet(["确定"], (index) => {
			$.get("/user/logout", {}, (e) => {
				wx.removeStorageSync('token')
        wx.removeStorageSync('phone')
        wx.removeStorageSync('uuid')
        wx.removeStorageSync('teacher_uuid')
        wx.removeStorageSync('campus_uuid')
				wx.reLaunch({
					url: '../login/index'
				})
			})
		})  },
  onLoad(e) {},
  onShow() {},
})